import dayjs from "dayjs";

export default function directiveFtime(app) {
  app.directive("ftime", {
    mounted(el) {
      let timestamp = Number(el.textContent);

      const formatTime = dayjs(timestamp).format("YY-MM-DD");
      el.textContent = formatTime;
    },
  });
}
